package sms.entity;

import jakarta.persistence.Id;
import jakarta.persistence.JoinColumn;
import jakarta.persistence.ManyToOne;
import lombok.Data;

import java.sql.Date;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@Data
public class Class {
    @Id
    private String classId;
    private String courseId;
    private String classType; // 'normal','makeup','retake','delay'
    private Integer teacherId;
    private Date startDate;
    private Date endDate;
    private Date scoreSubmitDeadline;
    @ManyToOne
    @JoinColumn(name = "course_id")
    private Course course; // 关联课程
    @ManyToOne
    @JoinColumn(name = "teacher_id")
    private User teacher;  // 关联教师
}
